<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.min.js"></script>
    <link href="css/mui.min.css" rel="stylesheet"/>
    <script src="js/jquery-2.2.1.js"></script>
    <script type="text/javascript" charset="UTF-8">
      
    </script>
</head>
<body>
		<div class="mui-input-row" style="">
						<label>用户名:</label>
						<input id="username" type="text" placeholder="请输入账号" style="border: 1px solid darkgrey;">
		</div>
		<div class="mui-input-row" style="margin-top: 20px;">
						<label>密码:</label>
						<input id="password" type="password" class="mui-input-password" style="border: 1px solid darkgrey;">
		</div>
		<div style="text-align: center; margin-top: 20px;">
		<button id="sum" style="float: left;margin-left: 50px;">登录</button>
		<button id="zhuc">注册</button>
		</div>
		<script>
		$("#zhuc").click(function(){
			mui.openWindow({
    						url:'three.html',
    						id:'three.html',
						});
		});
			$("#sum").click(function(){
				$.post("http://localhost:8080/land",
				{username:$("#username").val()},function(data){
					if(data[0].passWord==password.value){
						alert("登录成功");
						mui.openWindow({
    						url:'two.html',
    						id:'two.html',
    						extras:{
        					name:'username',
        					version:data[0].userName,
        					name:'password',
        					version:data[0].passWord,
    						}
						});
					}
				})
			})
		</script>
		<div id="aa">
			
		</div>
</body>
</html>